package com.md.api.dao;

import com.md.api.entity.UserBalanceRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserBalanceRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserBalanceRecord record);

    UserBalanceRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(UserBalanceRecord record);
    List<UserBalanceRecord> balanceDetails(@Param("userId")String userId);

    Double getBalance(@Param("userId")String userId);

    void deleteByOrderNo(@Param("orderNo")String orderNo);

    List<UserBalanceRecord> sysList(@Param("recordType")Integer recordType,@Param("nickName")String nickName,
                                    @Param("phone")String phone,@Param("createTimeStart") String createTimeStart,@Param("createTimeEnd") String createTimeEnd);
}